/*
    三元运算符 实现 输出说明 奇偶数
 */
import java.util.Scanner;

public class OddEvenDemo {
    public static void main(String[] args) {

        String c1 = "偶数",c2 = "奇数";

        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个整数");
        int i1 = sc.nextInt();
        System.out.println(i1 + "是" + ((i1 % 2 == 0) ? c1 : c2));
        System.out.println("请输入一个整数");
        int i2 = sc.nextInt();
        System.out.println(i2 + "是" + ((i2 % 2 == 0) ? c1 : c2));
    }


}
